package com.titan.demo.ClusterFailback;

import com.titan.demo.common.interfaces.IDemoService;
import com.titan.demo.common.services.DemoServiceImpl;
import com.titan.demo.common.utils.ProviderUtil;

public class Provider2 {
    public static void main(String[] args) throws Exception {
    	Integer port = 20882;
    	ProviderUtil.export("127.0.0.1", port, IDemoService.class, new DemoServiceImpl(port), "1.0.0");
    	
    	// 为保证服务一直开着，利用输入流的阻塞来模拟
    	System.in.read();
    }
}
